<ol id="sections">
    <li class="section">
        <div class="dp-content">
            <div id="doctor-search-filters">
                <h3 id="find-experts" class="grey-bg-title">Find experts of your choice</h3>
                <div id="search-doctors">
                    <?php include_partial("search", array("form" => $form)) ?>
                </div>
            </div>            
            <div id="doctor-search-results">
                <div id="doctors">
                    <?php $d = 0 ?>
                    <?php foreach ($doctors as $doctor): ?>
                        <?php $d++ ?>                    
                        <?php $user = $doctor->getUser() ?>
                        <div class="doctor">
                            <?php if ($d == 1): ?>
                                <h3 id="doctors-heading" class="grey-bg-title">Medical Practitioners</h3>
                            <?php endif; ?>
                            <div class="doctor-row">
                                <div class="inline-block">
                                    <div class="photo">
                                        <a href="/<?php echo $doctor->getUser()->getSlug() ?>"><?php include_partial("doctor_show/potrait", array("doctor" => $doctor, "height" => 50)) ?></a>
                                    </div>
                                </div>
                                <div class="inline-block doctor-column-1st">
                                    <div class="info">
                                        <a href="/<?php echo $doctor->getUser()->getSlug() ?>" class="name-title"><?php echo $doctor->getUser() ?></a>
                                        <div class="rating" id="doctor-rating-<?php echo $doctor->getId() ?>">
                                            <?php include_partial("rating", array("doctor" => $doctor, "doctorAverageRating" => $doctor->getAverageRating())) ?>
                                        </div>
                                        <div class="doctor-speciality">Cardiology</div>
                                    </div>
                                </div>
                                <div class="inline-block doctor-column-2nd">
                                    <div class="doctor-level">Level <?php echo floor($doctor->getLevel()->getPoints() / 10) ?></div>
                                    <div class="doctor-contribution">12 people helped</div>
                                    <div class="doctor-followers"><?php echo $user->getFollowers()->count() ?> follower(s)</div>
                                </div>
                                <div class="inline-block doctor-column-3rd">
                                    <?php $connection = $user->getConnection($sf_user->getUserId()) ?>
                                    <div class="connet doctor-<?php echo $connection['relationship'] ?>" userid="<?php echo $user->getId() ?>" status="<?php echo $connection['status'] ?>"><?php echo ucfirst($connection['relationship']) ?></div>
                                    <div class="connet doctor-recommend" userid="31" status="accepted">Recommend</div>                            
                                </div>
                            </div>
                        </div>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>
    </li>
</ol>